package com.autoagent.ai_live_master.common.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

/**
 * WebSocket连接事件
 * 用于在WebSocket连接建立时通知相关服务
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class WebSocketConnectionEvent extends ApplicationEvent {
    
    private final String roomId;
    private final String connectionType; // "websocket" 或 "socketio"
    
    public WebSocketConnectionEvent(Object source, String roomId, String connectionType) {
        super(source);
        this.roomId = roomId;
        this.connectionType = connectionType;
    }
}
